package com.chuanyang.driverh.mainmy;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.chuanyang.driverh.R;
import com.chuanyang.driverh.base.BaseTitleActivity;
import com.chuanyang.driverh.utils.ActivityUtil;

/**
 * 选择是认证车还是认证船
 */

public class AccredCarOrShipTeamActivity extends BaseTitleActivity {
    private LinearLayout ll_act_accredit_car;
    private LinearLayout ll_act_accredit_ship;

    @Override
    protected int getContentResId() {
        return R.layout.my_act_accredcarorship;
    }

    @Override
    public void initView(Bundle savedInstanceState)
    {
        setBackImg();
        getTitleTextView().setText("我的车/船");
       ll_act_accredit_car = (LinearLayout) findViewById(R.id.ll_act_accredit_car);
       ll_act_accredit_ship = (LinearLayout) findViewById(R.id.ll_act_accredit_ship);

    }
    @Override
    public void initData() {

    }

    @Override
    protected void initListener() {
        ll_act_accredit_car.setOnClickListener(this);
        ll_act_accredit_ship.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
       super.onClick(v);
        switch (v.getId()) {
            case R.id.ll_act_accredit_car:
                ActivityUtil.startActivity(activityContext,CarIdentifyActivity.class);
                finish();
                break;
            case R.id.ll_act_accredit_ship:
                ActivityUtil.startActivity(activityContext,ShipIdentifyActivity.class);
                finish();
                break;
        }
    }



}
